﻿using BlueWind.Mediator.ServiceContracts.Interfaces;
using System;
using System.Collections.Generic;

namespace BlueWind.Mediator.ServiceContracts
{
    public class PrototypeManager : Prototype, IPrototypeManager<Prototype>
    {
        private Dictionary<String, Prototype> prototypes = new Dictionary<String, Prototype>();

        public Dictionary<String, Prototype> Prototypes
        {
            get
            {
                return prototypes;
            }
            set
            {
                prototypes = value;
            }
        }

        public Prototype Prototype
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }

        public void Add(Prototype prototype, String name)
        {
            prototypes.Add(name, prototype);
        }

        public int GetCount()
        {
            return prototypes.Count;
        }

        public void Remove(String key)
        {
            prototypes.Remove(key);
        }
    }
}